package by.averianov.discounta.dataaccess;

import java.util.List;

import javax.persistence.metamodel.SingularAttribute;

import by.averianov.discounta.datamodel.CardType;

public interface CardTypeDao extends AbstractDao<Long, CardType> {
	
	CardType getCardTypeByName(String name);	

	List<CardType> getAllCardType(SingularAttribute<CardType, ?> attr, boolean ascending, int startRecord, int pageSize);

}
